beginoutdoorscript; // THIS SCRIPT IS THE OUTDOOR VERSION OF ODDTOWN, WHICH IS
// NOTHING MORE THAN ANY ODD SCRIPTS ALL BUNCHED TOGETHER.

variables;
int i,a,j,k,choice;
body;

beginstate 0;
break;

beginstate 2;
break;

beginstate 55;
if (get_flag(6,6) < 1){  message_dialog("The Enemies have banded together a force, which you march into. OUCH!","");  
create_out_spec_enc(1);
set_flag(6,6,1);}
break;

beginstate 61;
if (get_flag(6,8) < 1){  message_dialog("At last, after all of the stupid undead and Vahnatai, your end is in sight!","");  set_flag(6,8,1);}
break;

beginstate 65;
if (get_flag(45,1) < 1){  
message_dialog("At last, after a dangerous travel through enemy lands, your end is in sight!","Suddenly, you are whisked away in a flash of magic. You curse silently. The Vahnatai are obviously not finsihed with you yet.");
change_outdoor_location(25,0,14,25);}
if (has_item(473)) {
take_item(473);
set_flag(45,1,1);}
break;

beginstate 78;
block_entry(1);
message_dialog("You try to go near the Vahnatai Barracks, but it is too hard to reach. You would be killed attempting to approach it.","");
break;

beginstate 79;
block_entry(1);
message_dialog("You don't have enough time, and definitely not enough to waste time on fighting past a MILLION guards just to get to a Port which would take you deeper into enemy land.","You give up on that idea.");
break;

beginstate 17;
block_entry(1);
message_dialog("You see the road leading off into the distance, leading further into the enemy's territory.","You give up on going this way.");
break;

beginstate 27;
if (get_flag(6,12) < 1){  
message_dialog("This wall is a masterful build. Vahnatai walk safely inside, and their Warriors patrol the entrances.","");  
set_flag(6,12,1);}
break;

beginstate 46;
if (get_flag(73,4) < 1){ 
reset_dialog();
add_dialog_str(0,"You look around you at the all-too-familiar sight of the underworld. Cave trees dot around here and there, and in the distance you can see a small town, and a road.",0);
add_dialog_str(1,"However, this looks deeper than Avernum, much much deeper into the cave systems beneath the surface.",0);
add_dialog_str(2,"You finally come up with the only possible solution, these must be Vahnatai lands!",0);
add_dialog_str(3,"You curse. You obviously can't get back the way you came, so you'll just have to carry on forwards. Gods, this has been one lousy mission!",0);
add_dialog_choice(0,"Continue into Vahnatai Lands");
run_dialog(0);
set_flag(73,4,1);}
break;

beginstate 47;
if (get_flag(84,27) < 1){  
message_dialog("You step inside the tunnel, and are confronted by Undead and Vahnatai. You can't help but wonder... Vahnatai aren't very imaginative - are they?","Then ofcourse, you see the two Keepers with Demons on magical leashes. Maybe they have gotten smarter! And you can also see a small slime oozing towards you...");  
set_flag(84,27,1);}
break;

break;